package code._15network.tcp.v1;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class Client {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 8888);
        OutputStream outServiceSocket = socket.getOutputStream();
        outServiceSocket.write("hello tcp".getBytes());
        socket.close();
    }
}
